package com.llmcu.source.java8.java8inaction.chapter12.localdate.returnvalue;

import java.time.DayOfWeek;
import java.time.format.TextStyle;
import java.util.Locale;

/**
 * xxxx
 *
 * @author liuling
 * @date 2024-12-12 15:45
 */
public class DayOfWeekDemo {
    public static void main(String[] args) {
        // 周一到周日且和区域有关，所以枚举
        DayOfWeek dayOfWeek = DayOfWeek.FRIDAY;
        System.out.println(dayOfWeek.getValue());
        System.out.println(dayOfWeek.getDisplayName(TextStyle.FULL_STANDALONE, Locale.CHINA));
    }
}
